package org.eden.karb.device.audio;

import javax.sound.sampled.TargetDataLine;

/**
 * @author trsimoes
 */
public class AudioConfiguration {

    private TargetDataLine targetRecordLine;

    private int bufferSize;

    private int inputRefreshRate;

    private int timeBetweenEvents;

    public TargetDataLine getTargetRecordLine() {
        return targetRecordLine;
    }

    public AudioConfiguration setTargetRecordLine(TargetDataLine targetRecordLine) {
        this.targetRecordLine = targetRecordLine;
        return this;
    }

    public int getBufferSize() {
        return bufferSize;
    }

    public AudioConfiguration setBufferSize(int bufferSize) {
        this.bufferSize = bufferSize;
        return this;
    }

    public int getInputRefreshRate() {
        return inputRefreshRate;
    }

    public AudioConfiguration setInputRefreshRate(int inputRefreshRate) {
        this.inputRefreshRate = inputRefreshRate;
        return this;
    }

    public int getTimeBetweenEvents() {
        return timeBetweenEvents;
    }

    public AudioConfiguration setTimeBetweenEvents(int timeBetweenEvents) {
        this.timeBetweenEvents = timeBetweenEvents;
        return this;
    }
}
